﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace TimKiemDichVu
{
    public partial class LocationPage : PhoneApplicationPage
    {
        private void InitControls()
        {
            tblLocationName.Text = (Application.Current as App).location.TenDiaDiem;
            tblAddress.Text = (Application.Current as App).location.SoNha + " " + (Application.Current as App).location.TenDuong;
            tblComment.Text = (Application.Current as App).location.ChuThich;
            tblDistrict.Text = (Application.Current as App).location.TenQuanHuyen;
            tblServiceName.Text = (Application.Current as App).location.TenDichVu;
            tblWard.Text = (Application.Current as App).location.TenPhuong;
            recImage.Fill = (ImageBrush)Main.Resources[(Application.Current as App).location.MaDichVu.ToString()];
        }

        public LocationPage()
        {
            InitializeComponent();
            InitControls();
        }
    }
}
